package com.zhu.SupermarketInventoryManagement.prototype;

public class RecordPrototype {
    int id;
    String name;
    double price;
    double cost;
    int number;
    String categoryId;
    int adminId;

    public RecordPrototype(int id, String name, double price, double cost, int number, String categoryId, int adminId) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.cost = cost;
        this.number = number;
        this.categoryId = categoryId;
        this.adminId = adminId;
    }

    @Override
    public String toString() {
        return "GoodsPrototype{" +
                "ID=" + id +
                ", 商品名='" + name + '\'' +
                ", 价格=" + price +
                ", 成本=" + cost +
                ", 库存=" + number +
                ", 所属类别='" + categoryId + '\'' +
                ", 操作者id='" + adminId + '\'' +
                '}';
    }
}
